using System;
using System.Collections.Generic;
using System.Text;
using NBusiness.Data;
using NBusiness.Query;

namespace NBusiness.Data
{
    public class QueryCriteria : CriteriaBase
    {
        private IQuery _query;
        public IQuery Query
        {
            get { return _query; }
        }

        private Parameter[] _parameters;
        public Parameter[] Parameters
        {
            get { return _parameters; }
        }

        public QueryCriteria(IQuery query, params Parameter[] parameters)
            : this(query, 0, 0, null, SortOrder.None, parameters)
        { }

        public QueryCriteria(IQuery query, int startIndex, int maxEntities, string sortField, SortOrder order, params Parameter[] parameters) 
            : base(0, 0, null, order)
        {
            _query = query;
            _parameters = parameters;
        }
    }
}
